# Created by 黄景涛
# DATE 2024/5/21

class BasicAttr:
    option = ""
    attr_group = 'default'


class SingleChar(BasicAttr):
    """ 短字符 """
    ...


class LongChar(BasicAttr):
    """ 长字符 """
    ...


class Bool(BasicAttr):
    """ 布尔 """
    ...


class Int(BasicAttr):
    """ 整数 """
    ...
    option = {"min": "", "max": ""}


class Float(BasicAttr):
    """ 浮点 """
    ...
    option = {"min": "", "max": ""}


class Enum(BasicAttr):
    """ 枚举 """
    ...
    option = [
        {
            "id": "chang",
            "is_default": True,
            "name": "唱",
            "type": "text"
        },
        {
            "id": "tiao",
            "is_default": False,
            "name": "跳",
            "type": "text"
        },
        {
            "id": "rap",
            "is_default": False,
            "name": "RAP",
            "type": "text"
        },
        {
            "id": "dalaniu",
            "is_default": False,
            "name": "我要打篮球1234567890",
            "type": "text"
        }
    ]


class List(BasicAttr):
    """ 列表 """
    ...
    option = ["开发", "测试", "产品", "其他0123456789"]


class Date(BasicAttr):
    """ 日期 """
    ...


class Time(BasicAttr):
    """ 时间 """
    ...


class ObjUser(BasicAttr):
    """ 用户 """
    ...


class Organization(BasicAttr):
    """ 组织 """
    ...


class TimeZone(BasicAttr):
    """ 时区 """
    ...
